package com.anjubao.parking.municipal.parkinglot.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 返回地磁管理信息
 * @author anjubao
 */
@ApiModel(value = "ParkingGeomagneticResDto", description = "地磁信息")
@Data
@ToString
public class ParkingGeomagneticResDto implements Serializable {

    /**
     * 设备编号
     */
    @ApiModelProperty(value = "设备编号", required = true)
    private String code;

    /**
     *停车场所在区域名称
     */
    @ApiModelProperty(value = "停车场所属区域名称", required = true)
    private String parkingLotDistrictName;

    /**
     *停车场名称
     */
    @ApiModelProperty(value = "所属停车场名称", required = true)
    private String parkingLotName;

    /**
     *泊位名称
     */
    @ApiModelProperty(value = "泊位名称", required = true)
    private String parkingLotSlotName;

    /**
     *运行状态 0:断线 1:在线
     */
    @ApiModelProperty(value = "状态 0:断线 1:在线", required = true)
    private Integer isOnline;

    /**
     *剩余电量
     */
    @ApiModelProperty(value = "剩余电量", required = true)
    private long remainingBattery;

    /**
     *最后报到时间
     */
    @ApiModelProperty(value = "添加时间", required = true)
    private LocalDateTime createTime;

}
